Virtual Bus Device Using Management Engine

ABSTRACT

A management engine may be used to trap configuration cycles during the boot process and thereafter in response to operating system enumeration. As a result, a virtual bus device can be created. The bus device may be used to provision software to the platform even when the operating system is corrupted or non-functional.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 12/636,884, filed on Dec. 14, 2009.

BACKGROUND

This relates generally to management engines.

A management engine or service processor is an isolated and protected computing resource. It provides information technology management features independent of any installed operating system, including allowing improved management of corporate assets and a standardized corporate assets management technology. It includes firmware that provides management features for clients. It also allows system administrators to remotely manage a platform that has the management engine on it.

The management engine may include a host embedded controller interface (HECI), which is a bidirectional bus that allows the host operating system to communicate directly with the management engine, exchanging system management information in events. HECI enables the host operating system to control other devices, such as out-of-band controllers, wakeup on local area network, and power supply devices, as examples.

The management engine is an embedded controller running a lightweight microkernel operating system that provides a low power, out-of-band execution engine for management services. At system initialization, the management engine loads its code from system flash memory. This allows it to be up and running before the main operating system is started.

For run time data storage, the management engine may access to a protected memory at run time, in addition to a small amount of on-chip cache memory for faster or more efficient processing. In some cases, the protected memory may be a protected area of system memory. One feature of the management engine is that its power states are independent of the host operating system power states. This allows it to be up and running when the central processing unit and other components of the system are in deep sleep states.

As a result, the management engine can be a fully functioning component as soon as power is applied to the system. This allows it to respond to out-of-band commands from information technology management consoles without having to wake up the rest of the system, thereby reducing power consumption.

In order for the management engine to access the network while the host operating system is absent, the management engine uses direct access to network interfaces. The management engine manageability services share the Internet Protocol address of the host operating system, by using specific and dedicated transport level (Level 4) ports to distinguish manageability traffic from regular host traffic.

In many cases, it is desirable to provision software to a platform. A platform is simply any computer-based device that uses software. In some cases, it may be desirable to provide updates to platforms after they have already been distributed to end users. In other cases, new software may be distributed to those users. In addition, drivers may be provided as well.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic depiction of one embodiment of the present invention;

FIG. 2 is a flow chart for one embodiment of the present invention;

FIG. 3 is a depiction of processor address space and memory map for one embodiment;

FIG. 4 is a map of the memory mapped input/output space in accordance with one embodiment;

FIG. 5 is a schematic depiction depicting secure provisioning of a management engine for a generic PCI device ID according to one embodiment; and

FIG. 6 is a flow chart for software provisioning in accordance with one embodiment.

DETAILED DESCRIPTION

In accordance with some embodiments, a platform may have a configurable virtual bus device, enabling automatic firmware and software updates and other web services. This generic mechanism can be implemented in hardware and may be used to provide configurable virtual bus devices, which, in turn, may assist with software delivery. Other usages include providing firmware and driver updates and pre-silicon hardware design and debugging. The virtual bus device may be implemented securely by a management engine, in which case it is independent of the platform operating system. Therefore, updates may be provisioned even when the operating system is corrupted.

Referring to FIG. 1, in accordance with one embodiment, a platform 10 may include a central processing unit 12, coupled to a graphics processor (gfx) 14 and a dynamic random access memory (dram) 16. The processor 12 may be coupled to a bus 18, which, in one embodiment, has a Peripheral Component Interconnect or a PCI bus and, in particular, may be a PCI Express bus, in accordance with one embodiment. See PCI Express (PCIe) 2.0 Base Specification (Jan. 15, 2007) available from PCI-SIG, Beaverton, Oreg. 97006.

Connected to the bus 18 may be bus devices 20. In addition, a management engine core 22 may also be coupled to the bus 18. The management engine core may include management engine firmware 26 and a configuration bus target 24. The bus target 24 appears like an actual bus device and, therefore, enables the management engine core 22 to trap configuration cycles both from the basic input/output system (BIOS) during boot up and from the operating system (OS) during enumeration thereafter.

Referring to FIG. 2, the platform, independently of the management engine in one embodiment, operates first in a boot up period 30 under control of the basic input/output system and then after boot up, under control of the operating system. The sequence of FIG. 2 may be implemented, in some embodiments, in firmware, software, or hardware. In a software embodiment, the sequence of FIG. 2 may use instructions that are executed by a controller or computer resident within the management engine core 22, for example. The instructions are executed by any controller or processor and may be stored in any suitable storage, including a computer readable medium, such as semiconductor memory, an optical memory, or a magnetic memory.

During the system boot process, under control of the basic input/output system, the device enumeration begins, as indicated at 32. The platform traps the configuration cycles in the configuration bus target, as indicated at 34. The platform, independently of the management engine in one embodiment, then sends a response to the basic input/output system. The basic input/output system programs the memory mapped input/output (MMIO) space of the processor with base address registers for the management engine uniform memory access (UMA) region, as indicated at 36. Then, the system boots, as indicated at 38. Thereafter, the operating system begins its own bus device enumeration, as indicated at 40. Again, the platform traps the configuration cycles in the configuration bus target 42. As a result, the configuration bus target makes the configuration system believe that there is actually another bus device. This bus device may be called a virtual device because it does not exist in the form in which it is enumerated. This allows the management engine to provide services as if it were a bus device in a secure way which is configurable under control of the management engine.

The management engine firmware has the logic for secure provisioning of the virtual bus device identifier and trapping bus configuration requests. The secure provisioning of the virtual bus device may use protocols, such as Client Initiated Remote Access (CIRA), that the management engine firmware already supports in some embodiments. Thus, the management engine firmware will respond to the bus configuration requests that are sent to it via the bus hardware.

The bus configuration target device hardware is responsible for providing bus device identifiers for the management engine. It acts as a bus target device, trapping on bus configuration requests that are sent by the bus and sending that information to the management engine firmware.

In some embodiments, the processor address space or memory, shown in FIG. 3, includes the memory map input/output memory space, as indicated, graphics system memory, boot read only memory, and disk operating system in conventional memory, as also indicated.

The device memory mapped input/output (MMIO) space, shown in FIG. 4, is where the bus configuration registers for the virtual device are mapped into host memory. The bus configuration space includes a vendor identifier 46 from bits 0 to 15 at address OOh, a device identifier 44 at bits 16 to 31 at O4h, the command 50 and the status 48. At O8h, it includes the class code 52. From 24 h to 10 h, it includes the base address registers 54.

Referring to FIG. 5, for secure provisioning of software, software updates, drivers, and the like (provisioning app 62) of a virtual bus device ID in the management engine, begins with the management engine firmware being pre-provisioned with the fully qualified domain name (FQDN) of the provisioning server 60 over the Internet. When the management engine firmware 20 boots up, during the first system boot, the management engine firmware may check the management engine firmware to find out if it has been provisioned with a virtual PCI device ID in one embodiment.

Thus, referring to FIG. 6, the pre-provisioning is indicated at 70 and, after booting the sequence checks for the device identifier (ID) at block 72. If the device ID is already present, then the flow is finished. Otherwise, a connection is initiated to the remote provisioning server over the Internet, as indicated at 74. Any secure mechanism, may be used to provision the management engine with the virtual bus device ID, vendor ID, and/or function ID for the device of the chipset is to simulate, as indicated in block 76. After provisioning is completed, the server disconnects with the management engine, as indicated at 78. The management engine firmware and PCI target firmware inside the management engine now simulate the PCI device as though a new piece of hardware is connected to the platform

As a result, hardware may be used to remotely provision the platform with a bus device ID, as well as software updates, software, and drivers. Because it is done through the management engine, it is host operating system independent. That means that it can operate irregardless of the state of the host operating system. Because many of the components may already be present in the management engine, the consumer is provided a considerable value.

References throughout this specification to “one embodiment” or “an embodiment” mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one implementation encompassed within the present invention. Thus, appearances of the phrase “one embodiment” or “in an embodiment” are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be instituted in other suitable forms other than the particular embodiment illustrated and all such forms may be encompassed within the claims of the present application.

While the present invention has been described with respect to a limited number of embodiments, those skilled in the art will appreciate numerous modifications and variations therefrom. It is intended that the appended claims cover all such modifications and variations as fall within the true spirit and scope of this present invention. 

What is claimed is:
 1. A method comprising: trapping a configuration cycle in a target device within a management engine of a platform; creating a virtual bus device on said platform; and programming a system memory mapped input/output space with base address registers for the virtual bus device via the management engine.
 2. The method of claim 1 including provisioning software on said platform from a provisioning server.
 3. The method of claim 1 including trapping a configuration cycle during booting of said platform.
 4. The method of claim 1 including trapping a configuration cycle after the platform has booted.
 5. The method of claim 1 including checking upon booting to see if management engine firmware has been provisioned with a virtual device identifier.
 6. The method of claim 5 including initiating a connection to the provisioning server over the Internet.
 7. The method of claim 6 including using a secure mechanism to provision the virtual device identifier, vendor identifier, or function identifier.
 8. A computer readable medium storing instructions executed by a computer to: trap a configuration cycle in a target device within a management engine of the platform; create a virtual bus device on said platform; and program a system memory map input/output space with base address registers for the virtual bus device via the management engine.
 9. The medium of claim 8 further storing instructions to use said virtual bus device to provision software on the platform.
 10. The medium of claim 9 further storing instructions to provision software on said platform from a provisioning server.
 11. The medium of claim 8 further storing instructions to trap a configuration cycle during booting of said platform.
 12. The medium of claim 8 further storing instructions to trap a configuration cycle after the platform has booted.
 13. The medium of claim 8 further storing instructions to provision management engine firmware with a domain name of a provisioning server.
 14. The medium of claim 13 further storing instructions to check upon booting to see if management engine firmware has been provisioned with a virtual device identifier.
 15. The medium of claim 14 further storing instructions to initiate a connection to the provisioning server over the Internet.
 16. The medium of claim 15 further storing instructions to use a secure mechanism to provision a virtual device identifier, a vendor identifier, or a function identifier.
 17. An apparatus comprising: a processor; a bus coupled to said processor; a management engine coupled to said bus; and a configuration bus target within said management engine, said bus target to trap a configuration cycle and to create a virtual bus device on said bus, said processor including a memory mapped input/output space with base address registers for the virtual bus device via the management engine.
 18. The apparatus of claim 17, said virtual bus device to provision software on said apparatus.
 19. The apparatus of claim 18, said configuration bus target to trap a configuration cycle during booting.
 20. The apparatus of claim 17, said configuration bus target to trap a configuration cycle after booting.
 21. The apparatus of claim 17, said management engine including firmware pre-provisioned with a domain name of a provisioning server.
 22. The apparatus of claim 21, said management engine to check upon booting to see if the management engine firmware has been provisioned with a virtual device identifier.
 23. The apparatus of claim 22, said management engine to initiate a connection to the provisioning server over the Internet.
 24. The apparatus of claim 23, said management engine to use a secure mechanism to provision a virtual device identifier, vendor identifier, or function identifier. 